package com.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.entity.SmsBrand;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface SmsBrandService extends IService<SmsBrand> {
    /**
     * 根据ID查询推荐品牌
     *
     * @param id
     * @return
     */
    public SmsBrand getById(Integer id);

    /**
     * 查询所有推荐品牌
     *
     * @return
     */
    public List<SmsBrand> getAll();

    /**
     * 根据ID删除推荐品牌
     *
     * @param id
     * @return
     */
    public boolean deleteById(Integer id);

    /**
     * 新增推荐品牌
     *
     * @param smsBrand
     * @return
     */
    public boolean save(SmsBrand smsBrand);
}
